﻿@model Cofe.Web.Models.ExplorerViewModel
@{
    //ViewBag.Title = "Browse";
    ViewBag.ParentPath = Cofe.Core.PathFE.GetDirectoryName(Model.RootDirectory.ParseName);
    ViewBag.IsRootDirectory = String.IsNullOrEmpty(ViewBag.Path);
}

<h2>    
    @Html.Partial("_BreadcrumbPartial")   
</h2>
<table>
    @foreach (var entryModel in Model.SubEntries)
    {
        <tr>
            <td>
                <img src="@Url.RouteUrl("DefaultApi", new
                     {
                         httproute = "",
                         controller = "entry",
                         id = entryModel.Entry.EntryTypeInfo.Id,
                         resource = "largeIcon"
                     })" /></td>
            <td>@Html.ActionLink(@entryModel.Entry.Name, "Browse", new { path = @entryModel.Entry.ParseName })</td>
            <td>@entryModel.Entry.EntryTypeInfo.DynamicProperties.FileType</td>
            <td>@entryModel.Entry.EntryTypeInfo.DynamicProperties.MIMEType</td>
        </tr>
    }
</table>
